package com.uni.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 提现
 * @author yuyanzheng
 *
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class WithdrawDTO {
	private Long id;
	private String withdrawNo;
	private Long userId;
	private UserBaseInfoDTO user;
	@NotNull(message="不能为空")
	private Integer type;
	@NotNull(message="不能为空")
	private Long bankCardId;
	private String realName;
	private String bankCardNo;
	private String bankName;
	private String phone;
	@NotNull(message="不能为空")
	private Integer amount;
	private Integer status;
	private String serialId;
	private String message;

	@JsonFormat(timezone = "GMT+8", pattern = "YYYY-MM-dd HH:mm:ss")
	private Date createTime;

	@JsonFormat(timezone = "GMT+8", pattern = "YYYY-MM-dd HH:mm:ss")
	private Date updateTime;
}
